feat(rc-versioning)!: add version-aware object operations - #296
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue
Background and user impact
RustFS supports version-aware object reads, inspection, copy, listing, and deletion, but the CLI did not provide a consistent contract for selecting exact versions or preserving partial multi-version deletion results. Version-aware JSON also used legacy command-specific shapes, and authorization failures could be misclassified when status metadata was available.
Solution
cat,head,stat,cp, andrm.rm --versions, including pagination, delete markers, partial-success retention, and explicit governance bypass.versioned_objectsrecords for stat, copy, removal, dry-run, and partial failure results.BREAKING change and migration
BREAKING: JSON produced by
stat --version-id,rm --version-id,rm --versions, andcpwhen version identifiers are returned now uses the output schema v3versioned_objectsenvelope. Unversioned command output remains unchanged, and output v1/v2 schemas are unchanged. Consumers should dispatch onschema_version, read results underdata, and usedata.plannedfor dry-run removals.Validation
cargo fmt --all --checkcargo clippy --workspace -- -D warningscargo test --workspacegit diff --checkand conflict-marker auditAll checks pass with zero failures.